/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import beans.Bean;
import java.util.Iterator;

/**
 *
 * @author C
 */
public class MostrarListas {
    private Iterator it;

    public MostrarListas(Iterator it) {
        this.it = it;
    }    
    
    @Override
    public String toString(){
        String cadena="";
        while(it.hasNext()){
            Bean bean= (Bean) it.next();
            cadena+=bean.toString();
        }        
        return cadena;
    }
    
    
}
